﻿using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    public class UserEntityConfig : IEntityTypeConfiguration<User>
    {
        public void Configure(EntityTypeBuilder<User> builder)
        {
            builder.ToTable("T_Users");
            //builder.HasOne(c => c.Article).WithMany(a => a.Comments)
            //    .HasForeignKey(c => c.ArticleId)
            //    .IsRequired();

            //builder.Property(c => c.Message).IsRequired().IsUnicode();
        }
    }
}
